package com.xd.pre.modules.tpshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xd.pre.modules.tpshop.domain.TpOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xd.pre.modules.tpshop.virtuaBean.OrderVirtual2App;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lx
 * @since 2020-06-03
 */
public interface ITpOrderService extends IService<TpOrder> {

    OrderVirtual2App get_OrderVirtual2App(TpOrder order);

    int update_orderStatusTo3_whenCancelOrder(int orderId, int userId);

    TpOrder findOrder(int orderId, int userId);

    TpOrder findOrder_byKeyId(int parseInt);

    int update_confirmOrder_has_paytime(int orderId);

    int update_confirmOrder_no_paytime(int orderId);

    IPage<TpOrder> findList_byCondition(String condition, int pageIndex, int pageSize, TpOrder dto);

    TpOrder findOrder_by_order_sn(String order_sn);

    int findOrderLimit_inToday(int user_id);
}
